package com.naiterui.ehp.bs.agent.controller.inner;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.naiterui.ehp.bp.bo.agent.AgentCustomBO;
import com.naiterui.ehp.bs.agent.service.ICustomService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * 客户管理
 * 
 * @author yangfuya
 * @since 2022/2/15
 */
@Slf4j
@Api(tags = "客户管理")
@RequiredArgsConstructor
@RestController
@RequestMapping("inner/custom")
public class InnerCustomController {
    private final ICustomService customService;

    @ApiOperation("根据医生id获取所属信息")
    @GetMapping("getAgentCustom")
    private AgentCustomBO getAgentCustomByDoctorId(@RequestParam Long doctorId) {
        return this.customService.getAgentCustomByDoctorId(doctorId);
    }

}
